package com.ksm.zyz.sys.mapper;


import com.ksm.zyz.common.base.BaseMapper;
import com.ksm.zyz.sys.entity.CheckBox;
import com.ksm.zyz.sys.entity.SysPermission;
import com.ksm.zyz.sys.entity.SysRolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysRolePermMapper extends BaseMapper<SysRolePermission> {

    List<CheckBox> getPermission(String roleId);

    void savePermission(List<SysRolePermission> list);

    List<SysPermission> selectButton(@Param(value = "roleId") String roleId,@Param(value = "parentId") String parentId);
}
